package com.exampletest.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class RootController {
    @GetMapping("/admin_list")
    public String index() {
        return "DynamicAdmin/list"; // 假设跳转到行业动态列表页面
    }

    @GetMapping("/admin_add")
    public String addDynamic() {
        return "DynamicAdmin/add";
    }

    @GetMapping("/admin_edit")
    public String editDynamic() {
        return "DynamicAdmin/edit";
    }

    @GetMapping("/admin_detail")
    public String detailDynamic() {
        return "DynamicAdmin/detail";
    }
    @GetMapping("/dynamic_list")
    public String Userindex() {
        return "dynamic/list"; // 假设跳转到行业动态列表页面
    }

    @GetMapping("/add")
    public String UseraddDynamic() {
        return "dynamic/add";
    }

    @GetMapping("/edit")
    public String UsereditDynamic() {
        return "dynamic/edit";
    }

    @GetMapping("/detail")
    public String UserdetailDynamic() {
        return "dynamic/detail";
    }

}